package com.huaxin.hxmoduleworkorder.common.annotation.validation;

import com.huaxin.hxmoduleworkorder.common.validator.MaintenanceOrderOperationValidator;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = MaintenanceOrderOperationValidator.class)
@Documented
public @interface ValidMaintenanceOrderOperation {
    String message() default "无效的维保单操作，允许值：reviewing/reassign/processing/resolve/evaluate/complete/reject/rollback/cancel/view/edit/delete";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
